package Month07.day03;

import java.util.Random;
import java.util.Scanner;

public class Array {
    public static void main(String[] args) {
        System.out.println("猜一猜是哪个字母???");
        Scanner scanner = new Scanner(System.in);
        Random random = new Random();
        int randomNum = random.nextInt(26) + 65;
        while (true) {
            int scannerNum = scanner.nextInt();
            if (randomNum > scannerNum) {
                System.out.println("小了");
            } else if (randomNum < scannerNum) {
                System.out.println("大了");
            } else {
                char r = (char) randomNum;
                System.out.println("猜对了就是" + r + "这个字母");
                System.out.println("山东菏泽曹县牛逼666我的宝贝！");
            }
        }
    }
}
